﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using EzDesk.EventAggregation;
using EzDesk.DesktopClient.Model;
using EzDesk.Client.Utility;

namespace EzDesk.DesktopClient.Event
{
    public class FunctionNavigateArgs
    {
        public string Url { get; set; }
    }

    public class FunctionNavigateEvent : CompositeEvent<FunctionNavigateArgs>
    {
        private static FunctionNavigateEvent _instance;
        public static FunctionNavigateEvent Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = EventAggregator<FunctionNavigateEvent>.GetEvent();
                }
                return _instance;
            }
        }
    }
}
